project(yolov8_detect)

if(MSVC)
    set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
endif()

add_library(${PROJECT_NAME} SHARED yolov8_detect.cpp)

target_include_directories(${PROJECT_NAME} PUBLIC ${ONNXRUNTIME_INCLUDE_Dir} ${Model_Base_Dir})

target_link_libraries(${PROJECT_NAME} PUBLIC model_base)
target_link_libraries(${PROJECT_NAME} PUBLIC ${OpenCV_LIBS} ${ONNXRUNTIME_LIBS})